<?php
  require_once('tpl/header.php');
?>
<?php 
require_once("loginCheckadmin.php");
      require_once("../system/dbConn.php");

 $aname=$_POST['aname'];
  $adetial=$_POST['adetial'];
  $sql="insert into activity values(null,'$aname','$adetial')";
   // echo $sql;
    $result=mysqli_query($link,$sql);
//整数
  if ($result==1){
   	echo "添加成功";
   	header("refresh: 1;url='activityAdd.php'");}
   	else{ 
   		echo "添加失败";
   }

	 ?>

   


<?php
  require_once('tpl/footer.php');
?>